package org.demo.service.user.impl;


import java.util.List;


import org.demo.dao.mapper.UserInfoMapper;
import org.demo.dao.model.UserInfo;
import org.demo.service.user.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class UserInfoServiceImpl implements UserInfoService{
	
	@Autowired
	private UserInfoMapper mapper;

	public int insertSelective(UserInfo record) {
		return mapper.insertSelective(record);
	}

	public int deleteByPrimaryKey(Integer id) {
		return mapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(UserInfo record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	public UserInfo selectByPrimaryKey(Integer id) {
		return mapper.selectByPrimaryKey(id);
	}

	public List<UserInfo> selectAll() {
		return mapper.selectAll();
	}

	public UserInfo selectByUsername(String username) {
		return mapper.selectByUsername(username);
	}

}
